<template>
  <h1>这是首页</h1>
  <van-button type="primary" @click="router.push('/demo')">跳转至演示页</van-button>
</template>
<script setup>
import {useRouter} from "vue-router";
const router = useRouter()
</script>
<style scoped>
h1{
  font-size: 30px;
}
</style>